#ifndef __LOGGERT_H_
#define __LOGGERT_H_

enum LogLevel{
    TRACE,
    DEBUG,
    INFO,
    WARN,
    ERROR,
    FATAL
};

enum LogMod{
    THREADPOOL,
    THREAD
};

class Logger
{
    public:
        virtual void Write(int mod ,int level ,const char* log) const = 0;
        //日志记录必须单例
        static Logger* GetInstance();
};

class dumylogger final : public Logger
{
private:
    static dumylogger *pins;
    dumylogger();
public:
    ~dumylogger();
    virtual void Write(int mod, int level, const char *log) const;
    static dumylogger *GetInstance();
};

#endif
